package com.example.tests;
import org.testng.annotations.Test;

public class ContactCrationTests extends TestBase {
  
  @Test
  public void testNonEmptyContactCreation() throws Exception {
	app.getNavigationHelper().openMainPage();
    app.getContactHelper().initContactCreation();
    ContactData contact = new ContactData();
    contact.firstname = "firs name"; 
    contact.lastname = "last name"; 
    contact.address1 = "address1"; 
    contact.homephone = "home phone"; 
    contact.mobilephone = "mobile phone"; 
    contact.workphone = "work phone"; 
    contact.email1 = "emal1";
    contact.email2 = "email2";
    contact.bday = "18";
    contact.bmonth = "March"; 
    contact.byear = "1982";
    contact.group = "";
    contact.address2 = "address2";
    contact.homephone2 = "homephone2";
	app.getContactHelper().fillContactForm(contact);
    app.getContactHelper().submitContactCreation();
    app.getContactHelper().returnToHomePage();
  }
  
  @Test
  public void testEmptyContactCreation() throws Exception {
	app.getNavigationHelper().openMainPage();
	app.getContactHelper().initContactCreation();
    app.getContactHelper().submitContactCreation();
    app.getContactHelper().returnToHomePage();
  }
}